using MediatR;
using S.M.SmartMedical.Domain.DTOs;
using S.M.SmartMedical.ErrorCode;

namespace S.M.SmartMedical.API.Write.Application.Command
{
    /// <summary>
    /// 创建医院院区命令
    /// 用于处理新增医院院区的业务逻辑
    /// </summary>
    public class CreateHospitalAreaCommand : IRequest<APIResult<HospitalAreaDto>>
    {
        /// <summary>
        /// 院区名称
        /// </summary>
        public string Name { get; set; } = string.Empty;

        /// <summary>
        /// 院区地址
        /// </summary>
        public string Address { get; set; } = string.Empty;

        /// <summary>
        /// 联系电话
        /// </summary>
        public string? Phone { get; set; }

        /// <summary>
        /// 院区描述
        /// </summary>
        public string? Description { get; set; }

        /// <summary>
        /// 是否支持自助开单
        /// </summary>
        public bool IsSelfServiceEnabled { get; set; } = true;

        /// <summary>
        /// 院区标签列表
        /// </summary>
        public List<string> Tags { get; set; } = new List<string>();

        /// <summary>
        /// 经度
        /// </summary>
        public decimal? Longitude { get; set; }

        /// <summary>
        /// 纬度
        /// </summary>
        public decimal? Latitude { get; set; }

        /// <summary>
        /// 排序顺序
        /// </summary>
        public int SortOrder { get; set; } = 0;
    }
}